package tests;

import static org.junit.Assert.*;

import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;

public class BrickTest {

	private static fallingGame.Brick b;

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
		b = new fallingGame.Brick();
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
		b = null;
	}

	@Test
	public void testSpawn() {
		b.setHeight(10);
		b.spawn();

		assertEquals(1.0f, b.getY_vel(), 0);
		assertEquals(-10, b.getY(), 0);
		assertEquals(395, b.getX(), 209);
	}

}